/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 优信通用户经销商权限Entity
 * @author jyangye
 * @version 2018-04-17
 */
public class SysUserdealerprivilege extends DataEntity<SysUserdealerprivilege> {
	
	private static final long serialVersionUID = 1L;
	private String dealerprivilegeid;		// dealerprivilegeid
	private String userid;		// userid
	private String dealerrelationid;		// dealerrelationid
	private String dealerprivilegekind;		// dealerprivilegekind
    private String zone;
	
	public SysUserdealerprivilege() {
		super();
	}

	public SysUserdealerprivilege(String id){
		super(id);
	}

	@Length(min=1, max=32, message="dealerprivilegeid长度必须介于 1 和 32 之间")
	@ExcelField(title="dealerprivilegeid", align=2, sort=10)
	public String getDealerprivilegeid() {
		return dealerprivilegeid;
	}

	public void setDealerprivilegeid(String dealerprivilegeid) {
		this.dealerprivilegeid = dealerprivilegeid;
	}
	
	@Length(min=1, max=32, message="userid长度必须介于 1 和 32 之间")
	@ExcelField(title="userid", align=2, sort=20)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=11, message="dealerrelationid长度必须介于 1 和 11 之间")
	@ExcelField(title="dealerrelationid", align=2, sort=30)
	public String getDealerrelationid() {
		return dealerrelationid;
	}

	public void setDealerrelationid(String dealerrelationid) {
		this.dealerrelationid = dealerrelationid;
	}
	
	@Length(min=1, max=1, message="dealerprivilegekind长度必须介于 1 和 1 之间")
	@ExcelField(title="dealerprivilegekind", align=2, sort=40)
	public String getDealerprivilegekind() {
		return dealerprivilegekind;
	}

	public void setDealerprivilegekind(String dealerprivilegekind) {
		this.dealerprivilegekind = dealerprivilegekind;
	}

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }
}